package com.fcscs.cservice.ws.client.inroomservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.inroomservice.FindItemsRequest;
import com.fcscs.cservice.ws.schema.inroomservice.FindItemsResponse;

public class FindItemsClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(FindItemsClient.class);

	public FindItemsResponse findItems(FindItemsRequest req) {
		FindItemsResponse resp = (FindItemsResponse)getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("---------- FindItemsResponse: " + resp.getEntityVersionList() == null ? 0 : resp.getEntityVersionList());
		return resp;
	}
}
